FROM mysql:latest

# 环境变量
ENV MYSQL_DATABASE=ruoyi_admin \
  MYSQL_AUTHENTICATION_PLUGIN=mysql_native_password \
  MYSQL_ROOT_USER=root \
  MYSQL_ROOT_PASSWORD=root \
  MYSQL_CHARACTER_SET=utf8mb4 \
  MYSQL_COLLATE=utf8mb4_general_ci \
  TZ=Asia/Shanghai

ADD init.sql /docker-entrypoint-initdb.d

EXPOSE 3306
